package com.ocom.common.entity.card;


import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.ocom.common.entity.base.EntityCardBase;
import com.ocom.common.entity.typehandler.SignNoHandle;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.util.Date;

@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName(value = "xf_account_info", autoResultMap = true)
public class EntityXfAccountInfo extends EntityCardBase implements Serializable {

	private static final Long serialVersionUID = 2982931687365274179L;
	@TableId(value = "id", type = IdType.AUTO)
	private Integer id;
	@JsonProperty("comId")
	private Long comId;
	@JsonProperty("accountNo")
	private String accountNo;
	@JsonProperty("accountName")
	private String accountName;
	@JsonProperty("accTypeId")
	private Integer accTypeId;
	@JsonProperty("pId")
	private Long pId;
	@JsonProperty("deptId")
	private Integer deptId;
	@JsonProperty("accountState")
	private Integer accountState;
	@JsonProperty("accountRechargeMoney")
	private Long accountRechargeMoney;
	@JsonProperty("accountSubsidyMoney")
	private Long accountSubsidyMoney;
	@JsonProperty("remark")
	private String remark;

	@JsonProperty("signType")
	private Integer signType;

	@TableField(typeHandler = SignNoHandle.class)
	@JsonProperty("signNo")
	private String signNo;

	@JsonFormat(pattern = "yyyy-MM-dd",timezone = "GMT+08")
	@JsonProperty("endDate")
	private Date endDate;


}
